package com.flick.ctrl;

import com.flick.po.User;
import com.flick.service.RibbonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by flick on 2017/5/10.
 */
@RestController
public class RibbonCtrl {
    @Autowired
    private RibbonService ribbonService;

    @GetMapping("/ribbon/{id}")
    public User findUserById(@PathVariable String id){
        return ribbonService.findUserById(id);
    }
}
